<!DOCTYPE>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>登录-开单管理系统</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link href="{{URL::asset('static/style/public/base.css')}}" rel="stylesheet" type="text/css" />
<link href="{{URL::asset('static/style/lib/autologin.css')}}" rel="stylesheet" type="text/css" />
</head>
<body>
	<!--内容部分-->
	<div class="row-fluid clearfix">
    	<div class="superloginA"></div>
		<div class="loginBox">
			<div class="logo"><img src="{{URL::asset('static/images/logo.png')}}"></div>
			<div class="loginMain">
				<div class="tabwrap">
					<form action="{{url('/auth/login')}}" method="post" id="loginform">
						{{ csrf_field() }}
						<table border="0" cellspacing="0" cellpadding="0">
							<tbody>
								<tr>
									<td class="title">用户名：</td>
									<td><input type="text" name="User[username]" value="{{old('User')['username']}}" class="put-control txt loginuser" autocomplete="off"></td>
								</tr>
								<tr>
									<td class="title">密   码：</td>
									<td><input type="password" name="User[password]" value="{{old('User')['password']}}" class="put-control txt loginpwd" autocomplete="off"></td>
								</tr>
								@if (Session::has('error'))
									<tr>
										<td></td>
										<td class="tiper"><span>{{Session::get('error')}}</span></td>
									</tr>
								@endif

								@if(count($errors))
									@foreach($errors->all() as $error)
										<tr>
											<td></td>
											<td class="tiper"><span>{{$error}}</span></td>
										</tr>
									@endforeach
								@endif

								<tr>
									<td>&nbsp;</td>
									<td>
										<input type="submit" style="cursor: pointer" value="提交" class="loginbtn btnniu j-sub"></input>
										<input type="reset" style="cursor: pointer" value="重置" class="resetbtn btnniu" ></input>
									</td>
								</tr>

							</tbody>
						</table>
					</form>
				</div>
			</div>
		</div>
   </div>



<!-- END CONTAINER -->

	<!-- footer -->
	<div class="footer">
		<div class="footer-inner"> Copyright &copy; 开单管理   沪ICP备16047540号-1</div>
		<div class="footer-tools"> <span class="go-top"> <i class="icon-angle-up"></i> </span> </div>
	</div>

	<script src="{{URL::asset('static/js/public/jquery-1.10.1.min.js')}}" type="text/javascript"></script>
	<script src="{{URL::asset('static/js/bootstrap/bootstrap.min.js')}}" type="text/javascript"></script>
	<!--[if lt IE 9]>
	<script src="{{URL::asset('static/js/public/respond.min.js')}}"></script>
	<![endif]-->
	<script src="{{URL::asset('static/js/lib/login.js')}}" type="text/javascript"></script>

</body>
</html>
{{--<script>--}}
    {{--$(".j-sub").click(function () {--}}

        {{--$.ajax({--}}
            {{--type: "POST",--}}
            {{--url: "{{url('auth/denlu')}}",--}}
            {{--data: $('#loginform').serialize(),--}}
            {{--headers: {--}}
                {{--'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content')--}}
            {{--},--}}
            {{--success: function(result){--}}
                {{--if(result.status){--}}
                    {{--self.location = document.referrer--}}
                {{--}}--}}
        {{--});--}}
    {{--});--}}
{{--</script>--}}